<template>
    <div class="a1">
        {{ route.query.name }}
    </div>
</template>
    
<script setup lang='ts'>
// import { ref, reactive } from 'vue'
import { useRoute } from 'vue-router'
const route = useRoute()
</script>
    
<style scoped lang="scss">
.a1 {
    width: 200px;
    height: 200px;
    background-color: gold;
}
</style>